<?php 
global $glossary, $category;
?>
<ul class="category">
	<li <?php if($category == "") echo 'class="current"'?>><a href="<?=REQUEST_BASE?>glossary/<?=$glossary['serial']?>/show/" class="plain" title="ALL">All</a></li>
	<?php for($i = ord("a");$i <= ord("z");$i++) { ?>
	<li <?php if($category == chr($i)) echo 'class="current"'?>><a href="<?=REQUEST_BASE?>glossary/<?=$glossary['serial']?>/show/category/<?=chr($i)?>/" class="plain" title="<?=strtoupper(chr($i))?>"><?=strtoupper(chr($i))?></a></li>
	<?php }?>
</ul>
<div class="clear"></div>
